//
//  ViewController.m
//  NSTimer 引用问题 --解除timer 对控制器的引用问题
//
//  Created by 袁飞霞 on 16/5/12.
//  Copyright © 2016年 cn.sophietobeabetterone. All rights reserved.
//

#import "ViewController.h"
#import "FXWeakerTimerTarget.h"

@interface ViewController ()
@property (nonatomic, weak) NSTimer *timer;
@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.timer = [FXWeakerTimerTarget scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(upup) userInfo:nil repeats:YES];
    
}
-(void)upup
{
NSLog(@"%s", __FUNCTION__);
}
-(void)dealloc
{
NSLog(@"%s", __FUNCTION__);
}

@end
